﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ES_TrainingRequestApp.aspx.cs" Inherits="KPIS.GERP.GHRMS.APP.App_UI.Forms.ES_TrainingRequestApp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>ใบสมัครเข้ารับการอบรม</title>
    <link href="../../Styles/CssClass.css" rel="stylesheet" type="text/css" /> 
    <style type="text/css">
        .style1
        {
            width: 100px;
        }
        .style2
        {
            width: 102px;
        }
        .style3
        {
            width: 35px;
        }
        .style4
        {
            width: 36px;
        }
    </style>
</head>
  
     <script type="text/javascript">   

    
           function onTextChange(sender) {
                    if (sender.get_value() == "") {
                        sender.set_text("");
                    }
          } 
          
</script>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>     
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="Panel5">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="Panel5" 
                        LoadingPanelID="RadAjaxLoadingPanel2" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>

       <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel2" runat="server">
    </telerik:RadAjaxLoadingPanel>
 
<asp:panel ID="Panel6" runat="server" >
    <table width="1000" cellpadding="0" cellspacing="0">
    <tr>
    <td colspan = "3">
        <div class="moduleDivSlim1000">
        <div class="moduleDivBottom1000">
        <%--<table align="center" width ="980px" >
        <tr>
            <td align="left" class="tableHeader">
                รายชื่อผู้สมัครขอเข้ารับการอบรม</td>
        </tr>
        </table>--%>
        <table width ="980px" >
        <tr align="center">
        <td >
        <asp:Panel ID="PanelGrid2" 
            runat="server" 
            Width="980px" 
            Height="350px" 
            ScrollBars="Auto" 
            Visible="false">
            <telerik:RadGrid ID="RadGrid2" runat="server" AllowFilteringByColumn="True" AllowAutomaticDeletes="True"
                AllowMultiRowEdit="True" AllowMultiRowSelection="True" AllowPaging="True" 
                AllowSorting="True" AutoGenerateColumns="False" EnableAJAX="True" 
                EnableAJAXLoadingTemplate="True" GridLines="None" 
                OnItemCommand="RadGrid2_ItemCommand" Skin="Outlook" Width="99%" 
                onitemdatabound="RadGrid2_ItemDataBound">
                <MasterTableView AllowMultiColumnSorting="True" CellSpacing="-1" 
                        ClientDataKeyNames="train_seq" CommandItemDisplay="Top" DataKeyNames="train_seq" 
                        InsertItemPageIndexAction="ShowItemOnCurrentPage" 
                        NoMasterRecordsText="&lt; ไม่มีข้อมูล &gt;">
                        <CommandItemTemplate>
                            <table width="100%">
                                <tr>
                                    <td align="left">
                                        <%--<asp:LinkButton ID="AddInstitute" 
                                            runat="server" 
                                            CommandName="AddData" 
                                            Visible="true">
                                            <img alt="" src="../Images/Buttons/AddRecord.gif" 
                                                style="border:0px;vertical-align:middle;" /> เพิ่มรายการใหม่
                                        </asp:LinkButton>--%>
                                    </td>
                                    <td align="right">
                                    </td>
                                </tr>
                            </table>
                        </CommandItemTemplate>
                        <%--<RowIndicatorColumn>
                            <HeaderStyle Width="20px" />
                        </RowIndicatorColumn>                        
                        <ExpandCollapseColumn Visible="True">
                        </ExpandCollapseColumn>--%>
                        
                        <Columns>
                            <%--<telerik:GridTemplateColumn  
                                HeaderStyle-Width="15px"                                                             
                                HeaderStyle-HorizontalAlign="Center"
                                ShowFilterIcon="false"
                                AllowFiltering="false">                                                        
                                <ItemTemplate>
                                    <table>
                                        <asp:ImageButton 
                                            ID="cmdEdit" 
                                            runat="server" 
                                            CommandName="DataEdit"
                                            OnClientClick="javascript: return confirm('แก้ไขข้อมูลที่เลือก?');"
                                            ImageUrl="../Images/Buttons/Edit.gif" 
                                            ToolTip="แก้ไขรายการ"/>
                                    </table>
                                </ItemTemplate>
                                <HeaderStyle HorizontalAlign="Center" Width="15px" />
                            </telerik:GridTemplateColumn>--%>
                            
                            <%--<telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" 
                                ConfirmDialogType="RadWindow" ConfirmText="ลบข้อมูลที่เลือก?" 
                                Text="คลิกเพื่อลบข้อมูล" UniqueName="column1">
                                <HeaderStyle HorizontalAlign="Center" Width="15px" />
                                <ItemStyle HorizontalAlign="Center" Width="15px" />
                            </telerik:GridButtonColumn> --%>
                            
                            <telerik:GridBoundColumn DataField="trainee_seq" 
                                DataType="System.Int32" 
                                Display="False" 
                                ReadOnly="True" 
                                UniqueName="trainee_seq" 
                                Visible="False">
                            </telerik:GridBoundColumn>
                            
                            <telerik:GridBoundColumn DataField="emp_seq" 
                                DataType="System.Int32" 
                                Display="False" 
                                ReadOnly="True" 
                                UniqueName="emp_seq" 
                                Visible="False">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="FULL_NAME" HeaderText="ชื่อ-สกุล" 
                               ShowFilterIcon="false"
                               FilterControlWidth="100%"
                               CurrentFilterFunction="Contains"
                               AutoPostBackOnFilter="true"
                               UniqueName="FULL_NAME">
                               <HeaderStyle Wrap="False" HorizontalAlign="Center" />
                               <ItemStyle HorizontalAlign="Left" />
                            </telerik:GridBoundColumn>
                            
                            <telerik:GridBoundColumn DataField="working_text" HeaderText="สังกัด" 
                               ShowFilterIcon="false"
                               FilterControlWidth="100%"
                               CurrentFilterFunction="Contains"
                               AutoPostBackOnFilter="true"
                               UniqueName="JobSite">
                               <HeaderStyle Wrap="False" HorizontalAlign="Center" Width="180px" />
                               <ItemStyle HorizontalAlign="Left" />
                            </telerik:GridBoundColumn>
                           
                            <telerik:GridBoundColumn DataField="position_text" HeaderText="ตำแหน่ง" 
                               ShowFilterIcon="false"
                               FilterControlWidth="100%"
                               CurrentFilterFunction="Contains"
                               AutoPostBackOnFilter="true"
                               UniqueName="Position">
                               <HeaderStyle Wrap="False" HorizontalAlign="Center" Width="180px" />
                                <ItemStyle HorizontalAlign="Left" />
                            </telerik:GridBoundColumn>
                            
                            <telerik:GridBoundColumn DataField="class_text" HeaderText="ระดับ" 
                               ShowFilterIcon="false"
                               FilterControlWidth="100%"
                               CurrentFilterFunction="Contains"
                               AutoPostBackOnFilter="true"
                               UniqueName="Lavel">
                               <HeaderStyle Wrap="False" HorizontalAlign="Center" Width="180px" />
                                <ItemStyle HorizontalAlign="Left" />
                            </telerik:GridBoundColumn>
                            
                        </Columns>
                        <%--<EditFormSettings EditFormType="WebUserControl" 
                            UserControlName="../UserControls/TR_TrainingQuota.ascx">
                            <EditColumn UniqueName="EditCommandColumn1">
                            </EditColumn>
                        </EditFormSettings>--%>
                        <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                    </MasterTableView>
                    <ClientSettings AllowColumnHide="True" AllowColumnsReorder="True" 
                        EnableRowHoverStyle="True" ReorderColumnsOnClient="True">
                        <Selecting AllowRowSelect="True" EnableDragToSelectRows="true" />
                    </ClientSettings>
                </telerik:RadGrid>
            </asp:Panel>
        <asp:Panel ID="PanelAddData2" 
                runat="server"
                Height="380px"
                Visible="true" 
                width="956px" 
                align="center">
            <table cellpadding="0" cellspacing="0" width="1000">
              <tr>
              <td colspan="3">                
                    <table align="center" width="980px">
                    <tr>
                        <td align="left" class="tableHeader">
                            ใบสมัครเข้ารับการอบรม
                        </td>
                    </tr>
                    </table>        
                    <table align="center" style="width: 962px">
                        <tr>
                            <td>                             
                                <asp:Panel ID="Panel7" runat="server" Height="380px" ScrollBars="Auto" 
                                    Visible="true" Width="969px">
                                    <ul class="formList890px">
                                    <li>
                                        <table align="left" width="900px"> 
                                            <tr>
                                               <td align="right" style="width:35%">
                                                    หลักสูตรการอบรม :
                                                </td>
                                                <td align="left">
                                                    <asp:Label ID="lbTrainingCourseDescr" runat="server" ForeColor="Blue"></asp:Label>
                                                </td>
                                            </tr> 
                                        </table>
                                    </li>                                
                                    <li>
                                    <table align="left" width="900px">
                                    <tr>
                                       <td align="right" style="width:35%">
                                            เปิดรับสมัครตั้งแต่วันที่ :
                                        </td>
                                        
                                        <td align="left" class="style1">
                                            <asp:Label ID="lbDateSignStard" runat="server" ForeColor="Blue"></asp:Label>
                                        </td>
                                            
                                        <td align="right" class="style3">
                                            ถึง
                                        </td> 
                                        <td align="left">
                                            <asp:Label ID="lbDateSignEnd" runat="server" ForeColor="Blue"></asp:Label>
                                        </td>
                                    </tr>
                                    </table>
                                    </li>
                                    <li>
                                    <table align="left" width="900px">
                                    <tr>
                                       <td align="right" style="width:35%">
                                            อบรมตั้งแต่วันที่ :
                                        </td>
                                        
                                        <td align="left" class="style2">
                                            <asp:Label ID="lbDateTrainStard" runat="server" ForeColor="Blue"></asp:Label>
                                        </td>
                                            
                                        <td align="right" class="style4">
                                            ถึง
                                        </td> 
                                        <td align="left">
                                            <asp:Label ID="lbDateTrainEnd" runat="server" ForeColor="Blue"></asp:Label>
                                        </td>
                                    </tr>
                                    </table>
                                    </li>                                                                    
                                    <%--<li>
                                    <table align="left" width="900px"> 
                                        <tr>
                                           <td align="right" style="width:35%">
                                            คะแนนเต็ม : 
                                        </td>                                    
                                        <td>
                                            <asp:Label ID="lbTotalScore" runat="server" ForeColor="Blue"></asp:Label>
                                        </td>
                                        </tr>
                                        </table>
                                    </li>
                                    <li>
                                      <table align="left" width="900px"> 
                                        <tr>
                                           <td align="right" style="width:35%">
                                                คะแนนผ่านเกณฑ์ :</td>                                        
                                            <td>
                                            <asp:Label ID="lbScoreAcceptable" runat="server" ForeColor="Blue"></asp:Label></td>
                                        </tr>
                                        </table>
                                    </li>               --%>                 
                                    <li>
                                     <table align="left" width="900px"> 
                                        <tr>
                                           <td align="right" style="width:35%">
                                            จำนวนผู้เข้ารับการอบรมที่รองรับได้สูงสุด :</td>
                                        
                                        <td align="left">
                                            <asp:Label ID="lbMaxTrainee" runat="server" ForeColor="Blue"></asp:Label>&#160;&#160;คน</td>
                                        </tr>
                                        </table>
                                    </li>
                                    <li>
                                     <table align="left" width="900px"> 
                                        <tr>
                                           <td align="right" style="width:35%">
                                                    จำนวนคนในQuota :</td>
                                                
                                                <td align="left">
                                                    <asp:Label ID="lbQuota" runat="server" ForeColor="Blue"></asp:Label>&#160;&#160;คน
                                                </td>
                                           </tr>
                                        </table>
                                    </li>
                                    <li>
                                     <table align="left" width="900px"> 
                                        <tr>
                                           <td align="right" style="width:35%">
                                                จำนวนผู้สมัคร :
                                            </td>
                                            <td align="left">
                                                <asp:Label ID="lbTotalTrainee" runat="server" ForeColor="Blue"></asp:Label>&#160;&#160;คน
                                            </td>
                                        </tr>
                                            
                                        </table>
                                    </li>
                                    <li>
                                     <table align="left" width="900px"> 
                                        <tr>
                                           <td align="right" style="width:35%">
                                                จำนวนผู้มีสิทธิ์เข้ารับการอบรม :
                                            </td>
                                            
                                            <td align="left">
                                                <asp:Label ID="lbAccepTrainee" runat="server" ForeColor="Blue"></asp:Label>&#160;&#160;คน
                                            </td>
                                        </tr>
                                        </table>
                                    </li>
                                    <li>
                                      <table align="left" width="900px"> 
                                        <tr>
                                           <td align="right" style="width:35%">
                                                ค่าใช้จ่ายประมาณในการอบรม :
                                            </td>
                                           <td align="left">
                                                <asp:Label ID="lbTotalPrice" runat="server" ForeColor="Blue"></asp:Label>&#160;&#160;บาท
                                            </td>
                                        </tr>
                                        </table>
                                    </li>
                                    <li>
                                     <table align="left" width="900px"> 
                                        <tr>
                                           <td align="right" style="width:35%">
                                                    สถานที่ของการอบรม :
                                                </td>
                                                <td align="left">
                                                    <asp:Label ID="lbSchedule" runat="server" ForeColor="Blue"></asp:Label>
                                                </td>
                                           </tr>
                                        </table>
                                    </li> 
                                    </ul> 
                                    <table style="width: 646px">
                                    <tr>                                    
                                    <td align="right" style="width: 321px">
                                        <asp:Button ID="btnSave2" onclick="btnSave2_Click" runat="server" CssClass="button" Text="ส่งใบสมัคร" Width="80px" Visible="false"/>   
                                        </td>
                                    <td align="left">
                                        <asp:Button ID="btnCancel2" OnClick="btnCancel2_Click" runat="server" CssClass="button" Text="ยกเลิก" Width="80px" Visible="false"/>
                                    </td>
                                    </tr>
                                </table>
                                 </asp:Panel>
                            </td>    
                        </tr>            
                   </table>           
              </td>                                             
              </tr>         
             </table>
          </asp:Panel>
        </td>
        </tr>
        </table>
        </div>
        </div>
    </td>
    </tr>
    </table>
    </asp:panel>
    </form>
 </body>
 </html>
 